package programReadingProblem_3;

public class programReadingProblem_3 {
    public static void main(String[] args) {
        Target target = new Target();
        Thread thread1 = new Thread(target);
        Thread thread2 = new Thread(target);
        thread1.start();
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
        }
        thread2.start();
    }
}

class Target implements Runnable {
    int i = 0;

    public void run() {
        i++;
        System.out.println("i=" + i);
    }
}